tupcounter to each use of \setupcounter,
pass on the ones that apply to setupframed to each use of \setupframed and so
on.
Thsi is releatively easy in Lua where you could define a list of all possible
commands and which macro they apply to then loop through it looking to see if
that option had been
. short .. "]")
> end
> end
> \stopluacode
> \definebtx[aps:cite:special][aps:cite]
> \startsetups btx:aps:cite:special
> \btxcitereference
> \ctxlua{render_cite([==[\btxflush{year}]==], [==[\btxflush{author}]==])}
> \stopsetups
> % use it with \
On 4/24/2024 5:41 PM, Thomas A. Schmitz wrote:
Hi all,
I’m slightly embarrassed because this should be easy, but I can’t figure out
how to do this: in the tuc/tua file, I have the complete references of my
document. How can I access it from within my Lua code? For instance, something
like
Hi all,
I’m slightly embarrassed because this should be easy, but I can’t figure out
how to do this: in the tuc/tua file, I have the complete references of my
document. How can I access it from within my Lua code? For instance, something
like
utilitydata.structures.references.collected
author}]==])}
\stopsetups
% use it with \cite[special][knuth1]
```
This has several problems:
- \btxflush{short} does not work as I expected that. How can I get the short
form?
- \btxflush to pass arguments to lua does not work as intended. On the lua side
the
variable "author"
integration of Lua and MetaPost.
---
ConTeXt was invented in the 1990s by Hans Hagen and Ton Otten of the
Dutch company “Pragma Advanced Document Engineering” for typesetting
schoolbooks. Taco Hoekwater refactored the TeX source code to create
LuaTeX which was further developed into LuaMetaTeX
On 4/11/24 18:56, Hans Hagen via ntg-context wrote:
> [...]
>>> \protected\def\PrintTheThing{\ctxlua{document.print_the_thing()}}
>>
>> Sorry, but why \protected is required or recommended here?
>
> depends if you want it to be expandable
I see now that "still.pdf" has a full chapter (#3, titled
On 4/11/2024 5:07 PM, Pablo Rodriguez via ntg-context wrote:
On 4/10/24 21:48, Hans Hagen via ntg-context wrote:
On 4/10/2024 7:49 PM, Pablo Rodriguez via ntg-context wrote:
[...]
I wonder whether there is a proper way in the Lua code to avoid
[[\luaescapestring{}]] in \ctxlua
On 4/10/24 21:48, Hans Hagen via ntg-context wrote:
> On 4/10/2024 7:49 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> I wonder whether there is a proper way in the Lua code to avoid
>> [[\luaescapestring{}]] in \ctxlua.
>> [...]
> context(tokens.s
k?
>
> Hi Denis,
>
> as far as I know, this is required first:
>
> context --luatex --generate
Thanks, Pablo.
I've tried it, but it doesn't seem to work...
I'm getting this:
resolvers | resolving |
resolvers | resolving | warning: no lua configuration files
([[\luaescapestring{#1}]])}}
\PrintTheThing{a \em b {c}}
\stoptext
I wonder whether there is a proper way in the Lua code to avoid
[[\luaescapestring{}]] in \ctxlua.
BTW, [[\luaescapestring{}]] in \ctxlua works better for me, since in my
real world document, I’m using str:match() to check
wonder whether there is a proper way in the Lua code to avoid
[[\luaescapestring{}]] in \ctxlua.
BTW, [[\luaescapestring{}]] in \ctxlua works better for me, since in my
real world document, I’m using str:match() to check whether the string
ends with interrogation or exclamation marks
sed to say it was in my own environment file,
not in the lmtx distribution. I have a Lua function that prints
information about the computer model and the operating system into a
layer. Unfortunately, there was an "elseif" in there somewhere which
should catch exceptions (such as a raspbe
nment file,
not in the lmtx distribution. I have a Lua function that prints
information about the computer model and the operating system into a
layer. Unfortunately, there was an "elseif" in there somewhere which
should catch exceptions (such as a raspberry pi), but instead of
concatenating the re
On 4/7/2024 7:08 PM, Thomas A. Schmitz wrote:
Hi everybody,
this is bizarre, but hear me out: a file that I have has a mixture of
xml, TeX and Lua. It compiles cleanly, no problem, on macos and linux. I
also have a little raspberry pi on which I have installed lmtx. The file
compiles
Hi everybody,
this is bizarre, but hear me out: a file that I have has a mixture of
xml, TeX and Lua. It compiles cleanly, no problem, on macos and linux. I
also have a little raspberry pi on which I have installed lmtx. The file
compiles, BUT: it has one additional page. The first page
On 4/2/24 21:23, Mikael Sundqvist wrote:
> On Tue, Apr 2, 2024 at 9:16 PM Peter Münster wrote:
>> [...]
>> TIA for any hints,
>
> Hans wrote in his email:
> -- If you have troubles (crash) you need to wipe the cache due to a
> change in lua bytecode storage (no easy wa
t;
> Test file:
> \starttext
> \sc test
> \stoptext
>
> Is this a bug, or some misconfiguration of my installation?
>
> TIA for any hints,
Hans wrote in his email:
-- If you have troubles (crash) you need to wipe the cache due to a
change in lua bytecode storage (no easy w
ch/master/snippets/language-context.cson
There, I added information from the interface files and also from the
wiki, if existing. I don’t know how to do that in the lua script.
---
function flushers.pulsar(collected)
for interface, whatever in next, collected do
local commands = what
he due to a change in lua bytecode storage (no easy way to catch it).Hans & Mikael- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038
changes over time). What are
> the demands, so that we can see how to make it work or just work around
> it (as it's kind of boring to cook uyp complex features , esp compared
> to playing with metapost).
>
> -- Furthermore .. the usual bits and pieces as discussed on the list and
> otherwis
).
-- Furthermore .. the usual bits and pieces as discussed on the list and
otherwise.
-- If you have troubles (crash) you need to wipe the cache due to a
change in lua bytecode storage (no easy way to catch it).
Hans & Mi
configuration files already identified
> resolvers | resolving | skipping configuration file
> 'selfautoparent:/texmf-context/web2c/texmfcnf.lua' (no valid format)
> resolvers | resolving | no texmf paths are defined (using TEXMF)
> resolvers | resolving |
> mtxrun | the resolver databases are
(no valid format)
resolvers | resolving | no texmf paths are defined (using TEXMF)
resolvers | resolving |
mtxrun | the resolver databases are not present or outdated
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-context.lua' using hash
'lua:
ormat)
> resolvers | resolving | no texmf paths are defined (using TEXMF)
> resolvers | resolving |
> mtxrun | the resolver databases are not present or outdated
> resolvers | resolving | using suffix based filetype 'lua'
> resolvers | resolving | remembering file 'mtx-context.lua'
| resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-context.lua' using hash
'lua::mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-contexts.lua' using hash
'lua::mtx-contexts.lua
t; ) ; draw luminosityshade (
(unitsquare scaled 2cm) shifted (7cm,1cm) ) ( withshademethod "circular"
withshadecolors (.6,.1) ) ( withshademethod "circular" ) ; ) ; ;
metapost> trace >
pages > flushing realpage 4, userpage 4, subpage 4
close sourc
Dear Otared,
>
> when you read the lua code in the first \directlua{}, you should realize that
> the dimensions of almost all layout elements are depending on the value of my
> lua variable "paperSize".
> Thanks to defining the paper size first in lua, I can apply calculations
Dear Otared,
when you read the lua code in the first \directlua{}, you should realize that
the dimensions of almost all layout elements are depending on the value of my
lua variable "paperSize".
Thanks to defining the paper size first in lua, I can apply calculations of
nume
Pablo Rodriguez via ntg-context schrieb am 06.03.2024 um 20:17:
On 3/6/24 19:50, Wolfgang Schuster wrote:
[...]
Could you write the first line in plain language?
Look at the second example of the Lua code in the example below for each
command (the first example is your version), the third
On 3/6/24 19:50, Wolfgang Schuster wrote:
>> [...]
>> Could you write the first line in plain language?
>
> Look at the second example of the Lua code in the example below for each
> command (the first example is your version), the third example is just a
> condensed ver
.
Sorry, I know it has to be simple, but the syntax is too cryptic for me.
Could you write the first line in plain language?
Look at the second example of the Lua code in the example below for each
command (the first example is your version), the third example is just a
condensed version of
because Hans changed they way
how the values of the \setupinteraction commands are passed to Lua
side of ConTeXt to be written to the PDF file.
Many thanks for your reply and your explanation, Wolfgang.
I can provide at the moment solutions which ensure the information
appear in the PDF but none
hey way
> how the values of the \setupinteraction commands are passed to Lua
> side of ConTeXt to be written to the PDF file.
Many thanks for your reply and your explanation, Wolfgang.
> I can provide at the moment solutions which ensure the information
> appear in the PDF but none of the is ver
or explain me what I am missing
I can confirm the issue and it happens because Hans changed they way
how the values of the \setupinteraction commands are passed to Lua
side of ConTeXt to be written to the PDF file.
I can provide at the moment solutions which ensure the information
appear in the PDF
Pablo Rodriguez via ntg-context schrieb am 28.02.2024 um 19:02:
On 2/28/24 12:24, Pablo Rodriguez via ntg-context wrote:
[...]
This is why beforequadruple would make sense. I guess some Lua magic
could do that, computing x to the follwing page that "x % 4 = 3" (and
then \page[x]).
On 2/28/24 12:24, Pablo Rodriguez via ntg-context wrote:
> [...]
> This is why beforequadruple would make sense. I guess some Lua magic
> could do that, computing x to the follwing page that "x % 4 = 3" (and
> then \page[x]).
>
> I will try to find a trick for
the last]) penultima page of a booklet.
This is why beforequadruple would make sense. I guess some Lua magic
could do that, computing x to the follwing page that "x % 4 = 3" (and
then \page[x]).
I will try to find a t
or outdated
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-context.lua' using hash
'lua::mtx-context.lua'
resolvers | resolving | using suffix based filetype 'lua'
resolvers | resolving | remembering file 'mtx-contexts
(no valid format)
resolvers | resolving | no texmf paths are defined (using TEXMF)
resolvers | resolving |
mtxrun |
mtxrun | elapsed lua time: 0.041 seconds
Looks like the unset TEXMF and TEXMFCNF envars are a problem. What
should they be set to
∑
tex error > tex error on line 85 in file ./IntroEstadísticaNP.tex:
lua error:
registered function call [250]:
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:750: attempt to
index a nil value (local 'a2')
stack traceback:
...mtx/tex/texmf-context/
texmf paths are defined (using TEXMF)
resolvers | resolving |
mtxrun |
mtxrun | elapsed lua time: 0.045 seconds
I infer something (possibly a lot) is missing that the install.sh
normally sets up.
Thanks,
Roger
___
> On 21 Feb 2024, at 08:17, madiazm.eo...@gmail.com wrote:
>
> Thanks a lot Bruce, that did the trick! definitely I will have to learn a bit
> lua in summer.
> I just got an error on \qquad and found searching in internet that it was
> because escape character conflicts b
Thanks a lot Bruce, that did the trick! definitely I will have to learn a bit
lua in summer.
I just got an error on \qquad and found searching in internet that it was
because escape character conflicts between tex and lua. For the time i removed
it and since I will create itemizes I hope I dont
see my definition is: \def\tareaAbc #1ñ#2ñ#3ñ#4ñ{...context formating
> for each #)}; Its the clue to pass each sentence as an independent argument
> that I don't get to work.
> thanks again
>
A variation on Hans original suggestion is to use a buffer instead of a
separate text f
On 2/20/2024 12:26 PM, madiazm.eo...@gmail.com wrote:
Thanks Hans,
I supposed that lua would be more suitable, but unfortunately I still did not
learn it (I hope in summer I have time to read the manual)
The problem arises from the fact that for each line i will perform a different
action
Thanks Hans,
I supposed that lua would be more suitable, but unfortunately I still did not
learn it (I hope in summer I have time to read the manual)
The problem arises from the fact that for each line i will perform a different
action and for \def\foo I need four arguments so that I can
as changed in recent upload, that
memory
> consumption is about 60% of earlier versions.
it's hard to tell what exact consumpiton is becaue for instance
when lua
creates tables, they grow by factors two when then have to
(maybe 5.5 i
curious about what has changed in recent upload, that memory
>> > consumption is about 60% of earlier versions.
>> it's hard to tell what exact consumpiton is becaue for instance when lua
>> creates tables, they grow by factors two when then have to (maybe 5.5 is
>> a
what has changed in recent upload, that memory
> > consumption is about 60% of earlier versions.
> it's hard to tell what exact consumpiton is becaue for instance when lua
> creates tables, they grow by factors two when then have to (maybe 5.5 is
> a bit less consuming)
>
> on
to tell what exact consumpiton is becaue for instance when lua
creates tables, they grow by factors two when then have to (maybe 5.5 is
a bit less consuming)
on the one hand luametatex is more efficient than luatex due to all kind
of ímprovements' but some nodes are larger so that takes more memory
sy=1.001 in order to get the original height. Although not to difficult with a jump to Lua code, I would prefer not.yours sincerelydr. Hans van der Meer\starttext\ConTeXt\space version \contextversion\blank\type{\externalfigure[testfile.jpg]} source figure\crlf\externalfigure[testfile.jpg]\crlf\t
/alain'
resolvers | resolving | variable 'TEXMFCNF' set to ''
resolvers | resolving | variable 'TEXMF' set to ''
resolvers | resolving | variable 'TEXOS' set to 'context'
[...]
resolvers | resolving |
resolvers | resolving | warning: no lua configuration
files found
On 2/15/2024 10:02 AM, luigi scarso wrote:
On Wed, 14 Feb 2024 at 13:47, Hans Hagen wrote:
Hi,
as we're around texlive code freeze time we're also in upload mode
- i uploaded a new lmtx
- i also added linux and windows 32 bin (as it seems to have users)
- we're now using lua 5.5 which has
Hi,
The 5.5 seems to come from https://github.com/lua/lua/blob/master/lua.h
/Mikael
On Thu, Feb 15, 2024 at 10:04 AM luigi scarso wrote:
>
> On Wed, 14 Feb 2024 at 13:47, Hans Hagen wrote:
> >
> > Hi,
> >
> > as we're around texlive code freeze time we're a
On Wed, 14 Feb 2024 at 13:47, Hans Hagen wrote:
>
> Hi,
>
> as we're around texlive code freeze time we're also in upload mode
>
> - i uploaded a new lmtx
> - i also added linux and windows 32 bin (as it seems to have users)
>
> - we're now using lua 5.5 which has o
all.sh"...)
> > can you copy the 'bad line' in the mail
> >
> > (there's also a mtxrun.lua in scripts/context/lua)
> >
> > Hans
> >
> > -
> >
the command line to rebuild mtxrun locally without downloading
> > update from internet ?
> > (I only know "sh install.sh"...)
> can you copy the 'bad line' in the m
'bad line' in the mail
(there's also a mtxrun.lua in scripts/context/lua)
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038
to utilize low level typesetting
features for anything more sophisticated than a simple book or
article. By lower level, I mean how things like heads, items,
references, alignment, tables, etc., work. Also, I would like a book
that teaches things like how to program it using lua, how to
understand
some
2-3MB)
tex/texmf-/bin/mtxrun : copy of or link to luametatex
tex/texmf-/bin/context : copy of or link to luametatex
tex/texmf-/bin/mtxrun.lua : copy of
tex/texmf-context/scripts/context/lua/mtxrun.lua
tex/texmf-/bin/context.lua : copy of
tex/texmf-context/scripts/
Hi,
as we're around texlive code freeze time we're also in upload mode
- i uploaded a new lmtx
- i also added linux and windows 32 bin (as it seems to have users)
- we're now using lua 5.5 which has one restriction (was already
announced a while ago):
for i=1,10 in t do
i = 2
that is more of an index to the existing documentation
that is not out of date, with perhaps some simple examples. One case that comes
to mind is to pass a couple of numbers to Lua, have it do a calculation and use
the result in Context.
Regards,
Peter
> On 14/02/2024, at 9:03 AM, Sir Coleman via
Michael Guravage schrieb am 13.02.2024 um 14:01:
While reading the documentation I spotted something similar from which I
derived this solution:
\setupinteraction[state=start]
\def\squeeze#1%
{
\goto{#1} [url(tel:\ctxlua{context(string.gsub("#1", " ", "")
how to program it using lua, how to understand and utilize
the underlying engine itself (the low level LuaMetaTeX), how to even use
DocBook with ConTeXt, etc.
(I do realize that there already are manuals for lua in ConTeXt and on
LuaMetaTeX, etc., and manuals on various different parts of ConTeXt
add my own profiles to the distributed set in colorprofiles.xml?
Should I provide a colorprofiles.xml or .lua in texmf-local?
Hraban
___
If your question is of interest to others as well, please add an entry
Gerion Entrup schrieb am 25.01.2024 um 09:18:
Hi,
I want to make a proper definition of a new command to be able to
process it in Lua. I found something on StackOverflow [1] but that
breaks in enumeration _and_ when interaction is enabled and I do not
understand why? Can you give me some help
(as in listing the available installed ibmplex fonts)
>
>
> mtxrun --script font --list --spec --filter="fontname=*"
> mtxrun --script font --list --spec --filter="fontname=p*"
> mtxrun --script font --list --spec --filter="fontname=pl*"
>
> lua e
Hi,
You can try:
> \unexpanded\def\do_my_command[#1]#2{%
But there is probably a cleaner way to implement optional arguments with lua?
Best wishes,
Taco
> On 25 Jan 2024, at 09:18, Gerion Entrup wrote:
>
> Hi,
>
> I want to make a proper definition of a new command to be
="fontname=*"
mtxrun --script font --list --spec --filter="fontname=p*"
mtxrun --script font --list --spec --filter="fontname=pl*"
lua error : function call:
/home/vm/context/tex/texmf-linux-64/bin/mtxrun.lua:10080: bad argument
#9 to 'format' (number expected, got string
Hi,
return is OK with:
mtxrun --script font --list --spec --filter="fontname=ibm*"
but removing the m from the pattern
mtxrun --script font --list --spec --filter="fontname=ib*"
I get :
lua error : function call:
...0-app_context-linux-64/tex/texmf-linux-64/bin/m
Hi,
I want to make a proper definition of a new command to be able to
process it in Lua. I found something on StackOverflow [1] but that
breaks in enumeration _and_ when interaction is enabled and I do not
understand why? Can you give me some help here?
I want to make commands like \foo{bla
because the ages of dohbling performance every year are past.
There are several factors that impact performance:
tex engine : quite a bit faster in luametatex
mp engine : quite a bit faster in luametatex
lua engine : not much we can do about
but inefficient macros and usage can offset any gain
/manuals/musings.pdf#page=96 might
explain why Lua(Meta)TeX is slower.
Other chapters in that document from Hans might give you some insight on
the reasons why LMTX has to pay a price for being more feature-rich. I
got such impression when I read it.
Just in case it might help,
In comparison to LaTeX
self) may be
optimized for speed.
Your math book may use features (I’m guessing again) that require more
resources than the features used by “The TeXbook”.
> Why LuaMetaTeX is so slow? How can I speed it up?
https://www.pragma-ade.com/general/manuals/musings.pdf#page=96 might
explain why
close source> level 1, order 3, name
'./math-mkiv-t-b-ce3b35636ef01ee62897a2beb76049e0.tmp'
backend > xmp > using file
'/home/gerion/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
mkiv lua stats > used config file:
selfautoparent:/texmf/web2c/texmfcnf.lua
Am 15.01.24 um 18:16 schrieb Pablo Rodriguez via ntg-context:
I guess there might be an issue here. Could anyone confirm this?
Yes, same beta from last week (2024.01.08).
No error in the console output.
mkiv lua stats > loaded fonts: 4 files: latinmodernmath-companion.otf,
latinmod
Am 13.01.24 um 19:43 schrieb Henning Hraban Ramm:
(LMTX, latest beta with self-compiled binary on OSX-intel.)
With my book, I run into an Lua error while placing a sidefloat.
If I comment \externalfigure or replace the image with a different one,
the error disappears.
I can’t reproduce
(LMTX, latest beta with self-compiled binary on OSX-intel.)
With my book, I run into an Lua error while placing a sidefloat.
If I comment \externalfigure or replace the image with a different one,
the error disappears.
I can’t reproduce it in a minimal example, so I guess it depends
sibly add that in Wiki.
I do not know Lua, and I am too old to learn another programming language.
These days, I program only in Rust/Javascript.
--
Respect,
Shiv Shankar Dayal
___
If your question is of interest to other
,
tkz-elements.sty. Everything else is written in Lua. I think we could write a
simple ConTeXt environment file that would replace tkz-elements.sty, making all
of the tikz-elements package available for MetaFun rather than TikZ.
This would not give you the pretty drawing features of tikz-euclide
than that.)
>
> If there isn’t a MetaPost package for what you want, Lua may be useful for
> doing the calculations.
>
> Gavin
>
> ___
> If your question is of interest to others as well, pleas
d it beyond than that.)
If there isn’t a MetaPost package for what you want, Lua may be useful for
doing the calculations.
Gavin
___
If your question is of interest to others as well, please add an entry to the
Wiki!
mailli
hat it's not clear which words I
should be looking at. Ask yourself: what word(s) do I want the viewer to
remember when they walk away?
6. Consider swapping the TeX and MetaPost circles so that Lua, MetaPost and TeX are read
left to right as they appear in the acronym LMTX. Perhaps invert the &
e.g. what is the distinction between the 'source' (lua tex) and the
> 'resources' (fonts icc lib) and the 'frontend' (tex xml png ...mp)
> (no lua?)
Agreed.
In no particular order:
1. "ConTeXt" should be the biggest word - or as an obvious title for the
poster, away from the
Am 11.01.24 um 20:15 schrieb vm via ntg-context:
On 11/01/2024 19:52, Henning Hraban Ramm wrote:
Here’s a preliminary schema of LMTX. What do you think?
as is, it is difficult to understand where to look.
what does is describe?
e.g. what is the distinction between the 'source' (lua tex
On 11/01/2024 19:52, Henning Hraban Ramm wrote:
Here’s a preliminary schema of LMTX. What do you think?
as is, it is difficult to understand where to look.
what does is describe?
e.g. what is the distinction between the 'source' (lua tex) and the
'resources' (fonts icc lib
or \startMPpage…\stopMPpage, so that it can be typeset
> as-is.
>
> If you want to do 3D, you may want to get Lua involved for calculations. I
> use
>
> - Programming in LuaTeX page on the wiki (
> https://wiki.contextgarden.net/Programming_in_LuaTeX)
> - Programming in Lua, 4t
…\stoptext or \startMPpage…\stopMPpage, so that it can be typeset
as-is.
If you want to do 3D, you may want to get Lua involved for calculations. I use
- Programming in LuaTeX page on the wiki
(https://wiki.contextgarden.net/Programming_in_LuaTeX)
- Programming in Lua, 4th ed.
by Roberto Ierusalimschy
card memory” patterns as a background
(thanks, Hans!).
I tried to sketch the relationship of Lua/TeX/MetaPost in LuaMetaTeX and
ConTeXt LMTX around it, with different inputs and PDF/XML output – don’t
know yet how to make this easily understandable…
ConTeXt is interesting for people
. It is hard to come up with a good idea. Who is targeted?
ConTeXt is interesting for people that want to
integrate a typesetting system in a publishing environment, because
ConTeXt does not stand in your way as LaTeX often do and has many
programming features (lua, xml ...) or
typeset very
a good idea. Who is targeted?
ConTeXt is interesting for people that want to
integrate a typesetting system in a publishing environment, because
ConTeXt does not stand in your way as LaTeX often do and has many
programming features (lua, xml ...) or
typeset very customized layouts.
These two t
xt and
> makes Vim stay in Lua mode when it should go back to ConTeXt mode (I’m
> not too savvy of the details).
>
> The maintainer came up with a workaround [1] to force returning to
> ConTeXt mode, although the parenthesis remains highlighted as an error.
>
> That highli
Hello LuaMetaFun Fans,
Can I use mp.inject.path in Lua to create a disconnected path in MetaPost?
This is for my module that draws globes. I currently do something like this for
drawing the continents. (This MWE has two triangular continents.)
\startluacode
continents = {}
continents[1
by other syntax files. It somehow steals the syntax context and
makes Vim stay in Lua mode when it should go back to ConTeXt mode (I’m
not too savvy of the details).
The maintainer came up with a workaround [1] to force returning to
ConTeXt mode, although the parenthesis remains highlighted
...
Hope it helps
Christian
Am Sa., 6. Jan. 2024 um 13:04 Uhr schrieb Damien Thiriet via ntg-context <
ntg-context@ntg.nl>:
> Hello,
>
>
> Happy New Year!
>
> I got into a bug in my Vim syntax highlighting version.
> Highlight stays in lua mode after ctxlua macro is clo
Hello,
Happy New Year!
I got into a bug in my Vim syntax highlighting version.
Highlight stays in lua mode after ctxlua macro is closed.
Here is a MWE, where «this should not be highlitghted as
a comment indeed is.
\starttext
Hello!
\ctxlua{context("does the parser work?")}
-- t
ears
> gimmick:
>
> https://www.pragma-ade.nl/2023
>
> Of course it screams metapost but tex and lua are also involved. See it as
> compensation for the lack of an end-of-year update. The last page of the
> result
Dear Hans,
> Le 2 janv. 2024 à 05:35, Hans Hagen via ntg-context a
> écrit :
>
> On 1/1/2024 3:33 PM, vm via ntg-context wrote:
>> On 01/01/2024 13:28, Hans Hagen wrote:
>>> Of course it screams metapost but tex and lua are also involved. See it as
>>>
On 1/1/2024 3:33 PM, vm via ntg-context wrote:
On 01/01/2024 13:28, Hans Hagen wrote:
Of course it screams metapost but tex and lua are also involved. See
it as compensation for the lack of an end-of-year update. The last
page of the result has a bit of explanation.
Beautiful indeed
1 - 100 of 7421 matches
Mail list logo